package cn.chiship.bs.api.core.constants;

import cn.chiship.sdk.core.base.constants.CacheConstants;

/**
 * @author lijian
 * 缓存常量
 */
public class CommonCacheConstants extends CacheConstants {
    public static final String REDIS_COMMON_PROJECT_MEMBER_NAME = CommonConstants.COMMON_PROJECT_NAME + "-member";


    public static final String REDIS_QRCODE_LOGIN_PREFIX = "QRCODE_LOGIN";

    /**
     * 缓存APP版本
     */
    public static final String REDIS_APP_VERSION_PREFIX = "APP_VERSION";


    /**
     * 缓存已经删除的文件
     */
    public static final String REDIS_REMOVE_FILE_UUID = "REMOVE_FILE_UUID";


    /**
     * 缓存已经删除的文件
     */
    public static final String REDIS_CHUNK_IDENTIFIER = "UPLOAD_CHUNK_IDENTIFIER";

    public static final String REDIS_WECHAT_USER_PREFIX = "WECHAT_USER";


    public static final String REDIS_WECHAT_USER_LOCATION_PREFIX = "WECHAT_USER_LOCATION";

    public static String buildKey() {
        return buildKey(null);
    }

    public static String buildKey(String key) {
        return CommonConstants.COMMON_PROJECT_NAME + ":" + (key == null ? "" : key);
    }

}
